{% extends "admin_base.html" %}
{% block title %}新文章{% endblock %}

{% block content %}
  <form method="post">{% csrf_token %}
    <fieldset>
      <legend>新文章</legend>
      <div><label for="title">标题</label>{{ form.title }}</div>
      <div><label for="content">内容</label>{{ form.content }}</div>
      <div><label for="category">分类目录</label>{{ form.category }}</div>
      <div><label for="slug">slug</label>{{ form.slug }}</div>
      <div><label for="tags">tags</label>{{ form.tags }}</div>
      <div><input type="submit" value="提交" /></div>
    </fieldset>
  </form>
  {% for field in form.visible_fields %}
    {{ field.errors }}
  {% endfor %}
{% endblock %}
